import service from '@/utils/request'

const ConsumeApi = {
  addDrug: function(data) {
    return service.post('consume/drugInfo', data)
  },
  editDrug(data) {
    return service.put('consume/drugInfo', data)
  },
  updateDrugState(data) {
    return service.put('consume/drugInfo/updateState', data)
  },
  deleteDrug(data) {
    return service.delete('consume/drugInfo', {params: data })
  },
  listDrug(data) {
    return service.get('consume/drugInfo/list', {params: data })
  },
  getDrugInfo(data) {
    return service.get('consume/drugInfo', {params: data })
  },


}

export default ConsumeApi
